package io;

import java.io.*;
import java.util.Scanner;

public class IODemo9 {

    public static void main(String[] args) {
        try(Reader reader = new FileReader("d:/test.txt")) {
            while (true) {
                int c = reader.read();
                if (c == -1) {
                    break;
                }
                System.out.println((char)c);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


}
